<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        ul {
            list-style: none;
        }

        .slider {
            width: 520px;
            height: 280px;
            margin: 50px auto;
            background-color: pink;
            position: relative;
        }

        .left {
            position: absolute;
            top: 50%;
            left: 0;
            margin-top: -15px;
            font-size: 0;

        }

        .left img {
            width: 30px;
            height: 30px;
        }

        .right img {
            width: 30px;
            height: 30px;
        }

        .right {
            position: absolute;
            top: 50%;
            right: 0;
            margin-top: -15px;
            font-size: 0;
        }
        /* 父元素脱标，且高度没有设置， 子元素浮动会自动撑开父亲 ，不用使用清除浮动*/
        ul {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.1);
            border-radius: 7px;
        }

        ul li {
            width: 10px;
            float: left;
            height: 10px;
            border-radius: 5px;
            background-color: rgba(0, 0, 0, 0.2);
            margin: 2px 3px;
        }
        .current{
            background-color: #FF4400;
        }
    </style>
</head>

<body>
    <div class="slider">
        <img src="./images/taobao.jpg" alt="" srcset="">
        <a href="#" class="left">
            <img src="https://mat1.gtimg.com/pingjs/ext2020/qqindex2018/dist/img/lr-right1_2x.png" alt="">
        </a>
        <a href="#" class="right">
            <img src="https://mat1.gtimg.com/pingjs/ext2020/qqindex2018/dist/img/lr-right1_2x.png" alt="">
        </a>
        <ul>
            <li class="current"></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</body>

</html>